﻿using System;
using System.Data.Entity;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using ASC.DB;

namespace ASC.Models
{
    public enum TreeNodeType
    {
        Unknown,
        Channel,
        Module
    }

    public class TreeNodeModel
    {
       
        public int Id { get; set; }
        public string CssClass {
            get
            {
                string result = string.Empty;
                switch (this.Type)
                {
                    case 1: result = "channel";
                        break;
                    case 2: result = "module";
                        break;
                }
                return result;
            }
        }
        public string Name { get; set; }
        public string Description { get; set; }
        public int Type { get; set; }
        public bool Used { get; set; }
        public List<TreeNodeModel> ChildChannels { get; set; }
    }
}